package com.sky.service;

import com.sky.dto.CategoryPageQueryDTO;
import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);
    // 添加员工
    void save(EmployeeDTO employeeDTO);
   // 条件+分页查询
    PageResult pageQuery(EmployeePageQueryDTO employeePageQueryDTO);
    //员工启用，禁用
    void startOrStop(Integer status, Long id);

    //查询员工详情信息
    Employee a(Long id);
    // 更新
    void update(EmployeeDTO employeeDTO);
}
